package com.cyys.modules.system.dao.file;

import com.cyys.common.mapper.CyysBaseMapper;
import com.cyys.modules.system.model.file.FileEntry;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FileEntryDao extends CyysBaseMapper<FileEntry> {

	/**
	 * 获取单条数据
	 * 
	 * @param fileUrl
	 *            null,查询所有数据 0:查询未删除的数据,1:查询已删除的数据
	 * @return
	 */
	 FileEntry getByFileUrl(@Param(value = "fileUrl") String fileUrl) ;

    void moveAllFile(String dirId) ;

    int selectRecycleCount(@Param(value = "t")FileEntry fileEntry) ;

	List<FileEntry> selectRecycle(long current, long size, @Param(value = "t")FileEntry fileEntry) ;
}
